package ${baseInfo.packageName};

import ${tableClass.fullClassName};
import ${vo.packageName}.${vo.fileName};
import ${serviceInterface.packageName}.${serviceInterface.fileName};
import ${mapperInterface.packageName}.${mapperInterface.fileName};
import ${baseInfo.packageName?replace(".service.impl", ".base")}.BaseServiceImpl;

<#if baseService??&&baseService!="">
import ${baseService};
    <#list baseService?split(".") as simpleName>
        <#if !simpleName_has_next>
            <#assign serviceSimpleName>${simpleName}</#assign>
        </#if>
    </#list>
</#if>
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author ${author!}
* @createDate ${.now?string('yyyy-MM-dd HH:mm:ss')}
*/
@Service
public class ${baseInfo.fileName} extends BaseServiceImpl<${mapperInterface.fileName}, ${tableClass.shortClassName}> implements ${serviceInterface.fileName}{

    @Override
    public ${vo.fileName} getVoById(Long id) {
        return baseMapper.getVoById(id);
    }

    @Override
    public List<${vo.fileName}> getVos(${vo.fileName} vo) {
        return baseMapper.getVos(vo);
    }

    @Override
    public void saveOrUpdateVo(${vo.fileName} vo) {
        this.saveOrUpdate(vo);
    }

    @Override
    public void saveOrUpdateVoBatch(List<${vo.fileName}> vos) {
        this.saveOrUpdateAll(${vo.fileName}.convert(vos));
    }

}


